from TongYong.Request_FZ import Request_info
from Case_info.url_info import ServerUrls


class User:

    @staticmethod
    def login(username, password):
        data = {"username": username, "password": password}
        login_result = Request_info(ServerUrls.login_url, data=data)
        return login_result.post()

